/**
 * 
 */
function findGradeByid(){
	var grade = {
			gradeid:1,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/findGradeByid",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(grade),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function insertGrade(){
	var grade = {
			late:1,
			early:2,
			overtime:3,
			userid:4,
			username:1,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/insertGrade",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(grade),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function updateGrade(){
	var grade = {
			gradeid:1,
			late:1,
			early:2,
			overtime:3,
			userid:4,
			username:1,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/updateGrade",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(grade),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function deleteGrade(){
	var grade = {
			gradeid:1,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/deleteGrade",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(grade),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function findAllGrade(){
	var grade = {
			userid:4,
			username:1,
	}
	var gradeMap = {
			grade:grade,
			page:1,
			pageSize:3,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/findAllGrade",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(gradeMap),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}